package com.finace.money.data.bean;

import com.finace.money.common.util.StringUtil;

/**
 * Created by zhangpeng on 2018/1/11.
 */

public class AccountInfoBean extends BaseEntity {


    /**
     * account : 1880003
     * last_equity : 1014670.556
     * now_equity : 1016061.137
     * realizedpl : 0.0
     * unrealizedpl : 1410.0
     * commission : 19.419
     * profit : 1390.581
     * deposit : 0.0
     * withdraw : 0.0
     * MoneyUsed : 181717.6
     * TotalLiquidation : 1016061.137
     * AvabileFunds : 834343.537
     * FutMarginUsed : 15620.0
     * FutMarginFrozen : 166097.6
     * FutRealizedPL : 0.0
     * FutUnRealizedPL : 1410.0
     * FutCommission : 19.419
     * FutCash : 1390.581
     * FutLiquidation : 1390.581
     * FutMoneyUsed : 181717.6
     * FutAvabileFunds : 834343.537
     * is_last : true
     * rsp_info : {"error_id":0,"error_message":""}
     */

    private String account;
    private double last_equity;//昨日权益
    private double now_equity;//当前权益
    private double realizedpl;//持仓盈亏
    private double unrealizedpl;//平仓盈亏
    private double commission;//手续费
    private double profit;//盈亏
    private double deposit;//入金
    private double withdraw;//出金
    private double MoneyUsed;
    private double TotalLiquidation;
    private double AvabileFunds;//可用资金
    private double FutMarginUsed;//占用保证金
    private double FutMarginFrozen;//冻结保证金
    private double FutRealizedPL;
    private double FutUnRealizedPL;
    private double FutCommission;
    private double FutCash;
    private double FutLiquidation;
    private double FutMoneyUsed;
    private double FutAvabileFunds;
    private boolean is_last;
    private RspInfoBean rsp_info;

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public double getLast_equity() {
        return last_equity;
    }

    public void setLast_equity(double last_equity) {
        this.last_equity = last_equity;
    }

    public String getNow_equity() {
        return StringUtil.getDecimal(now_equity);
    }

    public void setNow_equity(double now_equity) {
        this.now_equity = now_equity;
    }

    public String getRealizedpl() {
        return StringUtil.getDecimal(realizedpl);
    }

    public void setRealizedpl(double realizedpl) {
        this.realizedpl = realizedpl;
    }

    public String getUnrealizedpl() {
        return StringUtil.getDecimal(unrealizedpl);
    }

    public void setUnrealizedpl(double unrealizedpl) {
        this.unrealizedpl = unrealizedpl;
    }

    public String getCommission() {
        return StringUtil.getDecimal(commission);
    }

    public void setCommission(double commission) {
        this.commission = commission;
    }

    public String getProfit() {
        return StringUtil.getDecimal(profit);
    }

    public void setProfit(double profit) {
        this.profit = profit;
    }

    public String getDeposit() {
        return StringUtil.getDecimal(deposit);
    }

    public void setDeposit(double deposit) {
        this.deposit = deposit;
    }

    public String getWithdraw() {
        return StringUtil.getDecimal(withdraw);
    }

    public void setWithdraw(double withdraw) {
        this.withdraw = withdraw;
    }

    public double getMoneyUsed() {
        return MoneyUsed;
    }

    public void setMoneyUsed(double MoneyUsed) {
        this.MoneyUsed = MoneyUsed;
    }

    public double getTotalLiquidation() {
        return TotalLiquidation;
    }

    public void setTotalLiquidation(double TotalLiquidation) {
        this.TotalLiquidation = TotalLiquidation;
    }

    public String getAvabileFunds() {
        return StringUtil.getDecimal(AvabileFunds);
    }

    public void setAvabileFunds(double AvabileFunds) {
        this.AvabileFunds = AvabileFunds;
    }

    public String getFutMarginUsed() {
        return StringUtil.getDecimal(FutMarginUsed);
    }

    public void setFutMarginUsed(double FutMarginUsed) {
        this.FutMarginUsed = FutMarginUsed;
    }

    public String getFutMarginFrozen() {
        return StringUtil.getDecimal(FutMarginFrozen);
    }

    public void setFutMarginFrozen(double FutMarginFrozen) {
        this.FutMarginFrozen = FutMarginFrozen;
    }

    public double getFutRealizedPL() {
        return FutRealizedPL;
    }

    public void setFutRealizedPL(double FutRealizedPL) {
        this.FutRealizedPL = FutRealizedPL;
    }

    public double getFutUnRealizedPL() {
        return FutUnRealizedPL;
    }

    public void setFutUnRealizedPL(double FutUnRealizedPL) {
        this.FutUnRealizedPL = FutUnRealizedPL;
    }

    public double getFutCommission() {
        return FutCommission;
    }

    public void setFutCommission(double FutCommission) {
        this.FutCommission = FutCommission;
    }

    public double getFutCash() {
        return FutCash;
    }

    public void setFutCash(double FutCash) {
        this.FutCash = FutCash;
    }

    public double getFutLiquidation() {
        return FutLiquidation;
    }

    public void setFutLiquidation(double FutLiquidation) {
        this.FutLiquidation = FutLiquidation;
    }

    public double getFutMoneyUsed() {
        return FutMoneyUsed;
    }

    public void setFutMoneyUsed(double FutMoneyUsed) {
        this.FutMoneyUsed = FutMoneyUsed;
    }

    public double getFutAvabileFunds() {
        return FutAvabileFunds;
    }

    public void setFutAvabileFunds(double FutAvabileFunds) {
        this.FutAvabileFunds = FutAvabileFunds;
    }

    public boolean isIs_last() {
        return is_last;
    }

    public void setIs_last(boolean is_last) {
        this.is_last = is_last;
    }

    public RspInfoBean getRsp_info() {
        return rsp_info;
    }

    public void setRsp_info(RspInfoBean rsp_info) {
        this.rsp_info = rsp_info;
    }
}
